package cn.summit.exception;


import cn.summit.validation.dto.ValidError;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 参数校验失败 Exception
 *
 * @author zj
 */
@Getter
@Setter
public class ArgsInvalidException extends BusinessException {

    private static final long serialVersionUID = -4695588446385887119L;

    private List<ValidError> errors;

    /**
     * 构造函数
     *
     * @param msg
     */
    public ArgsInvalidException(String msg) {
        super(msg);
    }

    /**
     * 构造函数
     *
     * @param msg
     */
    public ArgsInvalidException(String msg, List<ValidError> errors) {
        super(msg);
        this.errors = errors;
    }


}